package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;
import java.util.Set;

public interface IEmployeeService {
    void save(Employee entity);

    void delete(Long id);

    void update(Employee entity);

    Employee get(Long id);

    List<Employee> list();

    PageResult query(EmployeeQueryObject qo);

    void changeState(Long id);

    Employee checkName(String username);


    //查询角色
    Set<String> getRoleByEmpId(Long id);
    //查询权限
    Set<String> getPermissionByEmpId(Long id);
    //根据用户名查询是否有数据
    Employee getByUsername(String username);
}
